package com.abase.site.server;

import com.abase.site.client.services.PocAbaseService;
import com.google.inject.Inject;

public class ServiceFactory {
	
	private static ServiceFactory singleton = null;
	
	private ServiceFactory() {
	}
	
	private PocAbaseService service = null;
	
	public static ServiceFactory getInstance() {
		if (null == singleton) {
			singleton = new ServiceFactory();
		}
		return singleton;
	}
	
	@Inject
	public void setAbaseService(PocAbaseService abaseService) {
		this.service = abaseService;
	}
	
	public PocAbaseService getAbaseService() {
		return this.service;
	}

}
